﻿@model ZhongheCms.Models.GswTblMember
@{

    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string mystate = "[审核中]";
    if (Model.AuditFlag == 1)
    {
        mystate = "";
    }
    int i = 0;
    string colorname = "";
}
@section head
{
    <link href="/assets/sunjob/css/user.css" rel="stylesheet" />

}

<div class="container_24 clearfix" id="orderWrapper">
    <table width="1170" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="44" align="left" valign="top">
                <table width="1170" height="36" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" valign="middle" class="ling">首页　&gt; <a href="/SunJob/MemberCenter">会员中心</a>&gt;我的工作</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <table width="1170" border="0" cellpadding="0" cellspacing="0">
                    <tr align="left" valign="top">
                        <td width="190">
                            <table width="190" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="102" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td width="188" height="100" align="center" valign="middle" style="background-image: url(/assets/sunjob/images/left-huiyuanbg.jpg)">
                                                    <table width="150" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="name">
                                                                <img src="/assets/sunjob/images/left-huiyuanpic.jpg" width="24" height="18" align="absmiddle">&nbsp; @Model.MemberName
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="ling">积分：@Model.MemberPoint</td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="ling">@Model.MemberType <span>@mystate</span></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="leftxiu"><a href="/SunJob/UserInfoEdit/@Model.Id">修改个人资料</a></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="10" align="left" valign="top"></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="234" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td align="center" valign="top" bgcolor="#FFFFFF">
                                                    <table width="188" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left" valign="top">
                                                                <img src="/assets/sunjob/images/left-tongzhi.jpg" width="188" height="31">
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" valign="top">
                                                                <table width="154" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserMsg/@Model.Id">录取通知</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserMsg1/@Model.Id">领薪通知</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberTime/@Model.Id">我的时间</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberJob/@Model.Id">我的工作</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberHelpAdd/@Model.Id">需求发布</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberHelpList/@Model.Id">我的需求</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberOrder/@Model.Id">我的订单</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberJobpub/@Model.Id">职位发布</a></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="10" align="left" valign="top"></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="128" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td align="center" valign="top" style="background-color: #FFFFFF">
                                                    <table width="188" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left" valign="top">
                                                                <img src="/assets/sunjob/images/left-geren.jpg" width="188" height="31">
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" valign="top">
                                                                <table width="154" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserInfoEdit/@Model.Id">个人资料</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/ChangePassword/@Model.Id">修改密码</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberPoint/@Model.Id">我的积分</a></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr>
                            </table>
                        </td>
                        <td width="15">&nbsp;</td>
                        <td>

                            <table width="965" height="498" border="0" cellpadding="0" cellspacing="1" style="background-color: #FEA700;">
                                <tr>
                                    <td align="center" valign="top" style="background-color: #FFFFFF">
                                        <table width="965" border="0" cellpadding="0" cellspacing="0">
                                            <tr align="center" valign="middle" class="shijian" background="/assets/sunjob/images/baochebg.jpg">
                                                <td width="8%" height="44">
                                                    状态
                                                </td>
                                                <td width="12%" height="44">
                                                    职位编号
                                                </td>
                                                <td width="12%">
                                                    职位名称
                                                </td>
                                                <td width="20%">
                                                    工作日期
                                                </td>
                                                <td width="20%">
                                                    工作地点
                                                </td>
                                                <td width="12%">
                                                    报名日期
                                                </td>
                                                <td width="10%">
                                                    工作表现
                                                </td>
                                            </tr>
                                            @foreach (var item in Model.JobWorkAlls.Items)
                                            {
                                                if (i % 2 == 0)
                                                {
                                                    colorname = "#FDE3CC";
                                                }
                                                else
                                                {
                                                    colorname = "#FFFFFF";
                                                }

                                                <tr align="center" valign="middle" bgcolor="@colorname" class="leftmenu" height="34">
                                                    <td>
                                                        @if (item.AcceptedFlag == 1)
                                                        {
                                                            <span>已录取</span>
                                                        }
                                                        else
                                                        {
                                                            <span>已报名</span><br />
                                                            <span><a href="/SunJob/MemberJobDelete/@item.Id?mid=@item.MemberId">取消</a></span>
                                                        }
                                                    </td>
                                                    <td>@item.JobNo</td>
                                                    <td>
                                                        @item.JobTitle
                                                    </td>
                                                    <td>

                                                        @item.WorkDate <span>@item.WorkTime</span>

                                                    </td>
                                                    <td>
                                                        @item.Workplace
                                                    </td>
                                                    <td>
                                                        @item.RegDate.ToShortDateString()
                                                    </td>
                                                    <td>
                                                        @if (item.WorkFlag == 1)
                                                        {
                                                            <span style="color: red">[未参加]</span><br />
                                                        }
                                                        @if (item.WorkFlag == 2)
                                                        {
                                                            <span style="color: red">[好评]</span><br />
                                                        }
                                                        @if (item.WorkFlag == 3)
                                                        {
                                                            <span style="color: red">[中评]</span><br />
                                                        }
                                                        @if (item.WorkFlag == 4)
                                                        {
                                                            <span style="color: red">[差评]</span><br />
                                                        }
                                                        @item.WorkResult
                                                    </td>

                                                </tr>
                                                        i++;
                                            }


                                        </table>
                                    </td>
                                </tr>
                                @if (Model.JobWorkAlls.TotalPages > 1)
                                {
                                    <tr>
                                        <td align="center" valign="top" style="background-color: #FFFFFF">

                                            <div id="pages">




                                                <div class="pages">

                                                    <a href="/SunJob/MemberJob/@Model.Id?pageIndex=1">首页</a>
                                                    @if (Model.JobWorkAlls.CurrentPage - 1 > 0)
                                                    {
                                                        <a href="/SunJob/MemberJob/@Model.Id?pageIndex=@(Model.JobWorkAlls.CurrentPage - 1)">上一页</a>
                                                    }
                                                    @for (int j = 1; j <= Model.JobWorkAlls.TotalPages; j++)
                                                    {
                                                        if (j == Model.JobWorkAlls.CurrentPage)
                                                        {
                                                            <span class="selected">@j</span>
                                                        }
                                                        else
                                                        {
                                                            <a href="/SunJob/MemberJob/@Model.Id?pageIndex=@j">@j</a>
                                                        }
                                                    }

                                                    @if (Model.JobWorkAlls.CurrentPage + 1 <= Model.JobWorkAlls.TotalPages)
                                                    {
                                                        <a href="/SunJob/MemberJob/@Model.Id?pageIndex=@(Model.JobWorkAlls.CurrentPage + 1)">下一页</a>
                                                    }

                                                    <a href="/SunJob/MemberJob/@Model.Id?pageIndex=@Model.JobWorkAlls.TotalPages">尾页</a>
                                                </div>


                                            </div>

                                        </td>
                                    </tr>
                                }
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
